package org.thread.test02.demo04.demo1;

/**
 * @author ZJL
 * @date 2025-03-07
 */
public class MainTest {
    public static void main(String[] args) throws InterruptedException {
        UserThread userThread = new UserThread();

        FileData fileData = new FileData();
        userThread.setDestination("C:\\Users\\ZJL\\Desktop\\inPut.txt");
        userThread.setSource("C:\\Users\\ZJL\\Desktop\\outPut.txt");
        userThread.setFileData(fileData);

        GuardingThread guardingThread = new GuardingThread();
        guardingThread.setFileData(fileData);
        guardingThread.setDaemon(true);
        guardingThread.start();
        userThread.start();
    }
}
